<?php /* Smarty version 2.6.12, created on 2008-10-30 12:48:46
         compiled from admin/main/speed_bar.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'admin/main/speed_bar.tpl', 35, false),array('modifier', 'strip_tags', 'admin/main/speed_bar.tpl', 38, false),)), $this); ?>
<?php func_load_lang($this, "admin/main/speed_bar.tpl","lbl_speed_bar_management,txt_speed_bar_management_top_text,lbl_pos,lbl_link_title,lbl_url,lbl_active,lbl_delete,lbl_no_links_defined,lbl_add_link,lbl_add_update,lbl_speed_bar_management"); ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "page_title.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_speed_bar_management'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo $this->_tpl_vars['lng']['txt_speed_bar_management_top_text']; ?>


<br /><br />

<?php ob_start(); ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/language_selector.tpl", 'smarty_include_vars' => array('script' => "speed_bar.php?")));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<br />

<form action="speed_bar.php" method="post" name="speedbarform">
<input type="hidden" name="mode" value="update" />
<input type="hidden" name="id" value="" />

<table cellpadding="3" cellspacing="1" width="100%">

<tr class="TableHead">
	<td><?php echo $this->_tpl_vars['lng']['lbl_pos']; ?>
</td>
	<td><?php echo $this->_tpl_vars['lng']['lbl_link_title']; ?>
</td>
	<td><?php echo $this->_tpl_vars['lng']['lbl_url']; ?>
</td>
	<td><?php echo $this->_tpl_vars['lng']['lbl_active']; ?>
</td>
	<td class="SectionBox">&nbsp;</td>
</tr>

<?php if ($this->_tpl_vars['speed_bar']): ?>

<?php unset($this->_sections['sb']);
$this->_sections['sb']['name'] = 'sb';
$this->_sections['sb']['loop'] = is_array($_loop=$this->_tpl_vars['speed_bar']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['sb']['show'] = true;
$this->_sections['sb']['max'] = $this->_sections['sb']['loop'];
$this->_sections['sb']['step'] = 1;
$this->_sections['sb']['start'] = $this->_sections['sb']['step'] > 0 ? 0 : $this->_sections['sb']['loop']-1;
if ($this->_sections['sb']['show']) {
    $this->_sections['sb']['total'] = $this->_sections['sb']['loop'];
    if ($this->_sections['sb']['total'] == 0)
        $this->_sections['sb']['show'] = false;
} else
    $this->_sections['sb']['total'] = 0;
if ($this->_sections['sb']['show']):

            for ($this->_sections['sb']['index'] = $this->_sections['sb']['start'], $this->_sections['sb']['iteration'] = 1;
                 $this->_sections['sb']['iteration'] <= $this->_sections['sb']['total'];
                 $this->_sections['sb']['index'] += $this->_sections['sb']['step'], $this->_sections['sb']['iteration']++):
$this->_sections['sb']['rownum'] = $this->_sections['sb']['iteration'];
$this->_sections['sb']['index_prev'] = $this->_sections['sb']['index'] - $this->_sections['sb']['step'];
$this->_sections['sb']['index_next'] = $this->_sections['sb']['index'] + $this->_sections['sb']['step'];
$this->_sections['sb']['first']      = ($this->_sections['sb']['iteration'] == 1);
$this->_sections['sb']['last']       = ($this->_sections['sb']['iteration'] == $this->_sections['sb']['total']);
?>
<tr>
	<td>
	<input type="hidden" name="posted_data[<?php echo $this->_sections['sb']['index']; ?>
][id]" value="<?php echo $this->_tpl_vars['speed_bar'][$this->_sections['sb']['index']]['id']; ?>
" />
	<input type="text" size="3" maxlength="5" name="posted_data[<?php echo $this->_sections['sb']['index']; ?>
][orderby]" value="<?php echo $this->_tpl_vars['speed_bar'][$this->_sections['sb']['index']]['orderby']; ?>
" />
	</td>
	<td><input type="text" size="25" name="posted_data[<?php echo $this->_sections['sb']['index']; ?>
][title]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['speed_bar'][$this->_sections['sb']['index']]['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
	<td><input type="text" size="45" name="posted_data[<?php echo $this->_sections['sb']['index']; ?>
][link]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['speed_bar'][$this->_sections['sb']['index']]['link'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
	<td align="center"><input type="checkbox" name="posted_data[<?php echo $this->_sections['sb']['index']; ?>
][active]" value="Y"<?php if ($this->_tpl_vars['speed_bar'][$this->_sections['sb']['index']]['active'] == 'Y'): ?> checked="checked"<?php endif; ?> /></td>
	<td><input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_delete'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick='javascript: document.speedbarform.id.value="<?php echo $this->_tpl_vars['speed_bar'][$this->_sections['sb']['index']]['id']; ?>
"; submitForm(this, "delete");' /></td>
</tr>
<?php endfor; endif; ?>

<?php else: ?>

<tr>
	<td colspan="5" align="center"><?php echo $this->_tpl_vars['lng']['lbl_no_links_defined']; ?>
</td>
</tr>

<?php endif; ?>

<tr>
	<td colspan="5">&nbsp;</td>
</tr>

<tr>
	<td colspan="5"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/subheader.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_add_link'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
</tr>

<tr>
	<td><input type="text" size="3" maxlength="5" name="new_orderby" /></td>
	<td><input type="text" size="25" name="new_title" /></td>
	<td><input type="text" size="45" name="new_link" value="<?php echo $this->_tpl_vars['http_location']; ?>
/" /></td>
	<td align="center"><input type="checkbox" name="new_active" value="Y" checked="checked" /></td>
</tr>

<tr>
	<td colspan="5" class="SubmitBox"><input type="submit" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_add_update'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
</tr>

</table>
</form>

<?php $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean(); ?> 
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('content' => $this->_smarty_vars['capture']['dialog'],'title' => $this->_tpl_vars['lng']['lbl_speed_bar_management'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>